@import "common";
body {
  min-width: 320px;
  width: 15rem;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f2f2f2;
}
a {
  text-decoration: none;
}
/* #region 顶部搜索框*/
@base: 50;
@search_classify_width: (44rem / @base);
@search_classify_height: (70rem / @base);
.search_content {
  width: 15rem;
  height: (88rem / @base);
  background-color: #ffc001;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  padding: 0 20px;
  gap: 20px;

  .classify {
    width: @search_classify_width;
    height: @search_classify_height;
    background-image: url(./images/classify.png);
    background-repeat: no-repeat;
    background-size: @search_classify_width @search_classify_height;
  }
  .search {
    flex: 1;
    display: flex;
    justify-content: center;
    input {
      flex: 1;
      height: (66rem / @base);
      border-radius: (33rem / @base);
      background-color: #fff2cc;
      border: 0;
      outline: none;
      font-size: (25rem / @base);
      padding-left: (55rem / @base);
      color: #757575;
    }
  }
  .login {
    width: (55rem / @base);
    height: (70rem / @base);
    font-size: (25rem / @base);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
/* #endregion 顶部搜索框*/
/* #region banner*/
.banner {
  img {
    width: 100%;
    vertical-align: middle;
  }
}
/* #endregion banner*/
/* #region 广告位*/
.ad {
  display: flex;
  flex-direction: row;
  a {
    flex: 1;
    img {
      width: 100%;
    }
  }
}
/* #endregion 广告位*/
/* #region 导航栏*/
nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 10px;
  div {
    flex: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    img {
      width: (84rem / @base);
    }
    span {
      font-size: (22rem / @base);
      color: #666;
    }
  }
}
/* #endregion 导航栏*/
